package com.igeek.base.ch0711.Dome2;

/**
 * @Description TODO
 * @Author chenmin
 * @Date 2024/7/11 15:52
 */
public class Father extends GrandFather{

    private String occupation;

    public Father(String name, int age, String occupation) {
        super(name, age);
        this.occupation = occupation;
    }

    public void getFather(){
        System.out.println("父亲姓名："+getName()+",年龄："+getAge()+",职业："+occupation);
    }

}
